package e2q.oa.domain;

import java.io.Serializable;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
@Entity
@Table(name = "SYSTEMROLEINFO")
public class E2qOaUserRoleInfo implements Serializable {
	// Fields

	private Long srinid;
	private String srinname;
	private String srindesc;
	private Long srinSdinid;
	private Short srindeleted;
	private Short srinissys;
	private Long srinprpe;
	private String srinDeporder;
	private Long srindeporder;
	private Set systemactivityprivileges = new HashSet(0);
	private Set systemstatisticprivileges = new HashSet(0);
	private Set systemprocessprivileges = new HashSet(0);
	private Set systemchartprivileges = new HashSet(0);
	private Set systemuserrolerelations = new HashSet(0);

	// Constructors

	/** default constructor */
	public E2qOaUserRoleInfo() {
	}

	/** minimal constructor */
	public E2qOaUserRoleInfo(Long srinid, String srinname,
			Long srinSdinid, Short srinissys, Long srinprpe,
			Long srindeporder) {
		this.srinid = srinid;
		this.srinname = srinname;
		this.srinSdinid = srinSdinid;
		this.srinissys = srinissys;
		this.srinprpe = srinprpe;
		this.srindeporder = srindeporder;
	}

	/** full constructor */
	public E2qOaUserRoleInfo(Long srinid, String srinname,
			String srindesc, Long srinSdinid, Short srindeleted,
			Short srinissys, Long srinprpe, String srinDeporder,
			Long srindeporder, Set systemactivityprivileges,
			Set systemstatisticprivileges, Set systemprocessprivileges,
			Set systemchartprivileges, Set systemuserrolerelations) {
		this.srinid = srinid;
		this.srinname = srinname;
		this.srindesc = srindesc;
		this.srinSdinid = srinSdinid;
		this.srindeleted = srindeleted;
		this.srinissys = srinissys;
		this.srinprpe = srinprpe;
		this.srinDeporder = srinDeporder;
		this.srindeporder = srindeporder;
		this.systemactivityprivileges = systemactivityprivileges;
		this.systemstatisticprivileges = systemstatisticprivileges;
		this.systemprocessprivileges = systemprocessprivileges;
		this.systemchartprivileges = systemchartprivileges;
		this.systemuserrolerelations = systemuserrolerelations;
	}

	// Property accessors
	@Id
	@GeneratedValue(generator = "pk")
	@Column(name = "srinid")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
	public Long getSrinid() {
		return this.srinid;
	}

	public void setSrinid(Long srinid) {
		this.srinid = srinid;
	}
	@Column(name = "srinname")
	public String getSrinname() {
		return this.srinname;
	}

	public void setSrinname(String srinname) {
		this.srinname = srinname;
	}
	@Column(name = "srindesc")
	public String getSrindesc() {
		return this.srindesc;
	}

	public void setSrindesc(String srindesc) {
		this.srindesc = srindesc;
	}
	@Column(name = "srin_Sdinid")
	public Long getSrinSdinid() {
		return this.srinSdinid;
	}

	public void setSrinSdinid(Long srinSdinid) {
		this.srinSdinid = srinSdinid;
	}
	@Column(name = "srindeleted")
	public Short getSrindeleted() {
		return this.srindeleted;
	}

	public void setSrindeleted(Short srindeleted) {
		this.srindeleted = srindeleted;
	}
	@Column(name = "srinissys")
	public Short getSrinissys() {
		return this.srinissys;
	}

	public void setSrinissys(Short srinissys) {
		this.srinissys = srinissys;
	}
	@Column(name = "srinprpe")
	public Long getSrinprpe() {
		return this.srinprpe;
	}

	public void setSrinprpe(Long srinprpe) {
		this.srinprpe = srinprpe;
	}
	@Column(name = "SRIN_DEPORDER")
	public String getSrinDeporder() {
		return this.srinDeporder;
	}

	public void setSrinDeporder(String srinDeporder) {
		this.srinDeporder = srinDeporder;
	}
	@Column(name = "srindeporder")
	public Long getSrindeporder() {
		return this.srindeporder;
	} 

	public void setSrindeporder(Long srindeporder) {
		this.srindeporder = srindeporder;
	}
	
}
